#include "tennis.h"
#include <iostream>

TennisClubPlayer::TennisClubPlayer(const string& n, bool hB) 
    : name(n), hasBall(hB) {}

void TennisClubPlayer::Name() const {
    std::cout << name;
}

RatedPlayer::RatedPlayer(unsigned int r, const string& name, bool hB) 
    : TennisClubPlayer(name, hB), rating(r) {}

RatedPlayer::RatedPlayer(unsigned int r, TennisClubPlayer& TC)
    : TennisClubPlayer(TC), rating(r) {}
